

def start_forward_test(iload):
    if iload >= 80:
        return 100
    else:
        return 20

def find_mol(iload, step, max_offered_load):
    max_forward_rate = 0
    while True:
        if iload > max_offered_load:
            iload = max_offered_load
        forward_rate = start_forward_test(iload)
        if forward_rate > max_forward_rate:
            max_forward_rate = forward_rate
        if iload >= max_offered_load:
            break
        else:
            iload += step
    return max_forward_rate

if __name__ == '__main__':
    find_mol(max_offered_load=95, iload=10, step=10)